﻿<%@ Page Language="C#" MasterPageFile="~/defaultMaster.master" AutoEventWireup="true" CodeFile="quickPurchase.aspx.cs" Inherits="QuickPurchase" Title="Xác nhận mua hàng" %>

<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<%@ Register Assembly="RadComboBox.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
    <table align="center" border="0" cellpadding="0" cellspacing="5" style="width: 650px">
        <tr>
            <td>
                <table align="center" border="0" cellpadding="0" cellspacing="0" style="border-right: #ccc 1px solid;
                    border-top: #ccc 1px solid; border-left: #ccc 1px solid; width: 100%; border-bottom: #ccc 1px solid">
                    <tr>
                        <td style="height: 13px">
                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                <tr>
                                    <td style="width: 35px; height: 30px">
                                        <img alt="" src="imgs/header_left.gif" /></td>
                                    <td class="header" style="height: 30px">
                                        <span class="HeaderText">Xác nhận mua hàng</span></td>
                                </tr>
                            </table>
                            <table align="center" border="0" cellpadding="5" cellspacing="0">
                                <tr>
                                    <td align="center" colspan="2">
                                    </td>
                                </tr>
                                <tr style="color: #000000">
                                    <td align="left" style="width: 170px">
                                    </td>
                                    <td align="justify" style="padding-left: 5px; width: 500px">
                                        <asp:Label ID="lblErr" runat="server" CssClass="Verdana8Red" Font-Bold="True" Visible="False">Thẻ của bạn đã hết hạn sử dụng !!!</asp:Label>
                                        <asp:Label ID="lblQuickErr" runat="server" CssClass="Verdana8Red" Font-Bold="True" Visible="False">Sản phẩm vừa được người khác "MUA NGAY"</asp:Label></td>
                                </tr>
                                <tr style="color: #000000">
                                    <td align="left" style="width: 170px">
                                        Tên sản phẩm:</td>
                                    <td align="justify" style="padding-left: 5px; width: 500px">
                                        <asp:Label ID="lblProName" runat="server" CssClass="Verdana8Olive" Font-Bold="True"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td align="left" style="width: 170px">
                                        Giá:</td>
                                    <td align="justify" style="padding-left: 5px; width: 500px">
                                        <asp:Label ID="lblPrice" runat="server" CssClass="Verdana10RedBold"></asp:Label>
                                        <asp:HiddenField ID="txtPrice" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" style="width: 170px" valign="middle">
                                        Phí vận chuyển:</td>
                                    <td align="justify" style="padding-left: 5px; font-weight: bold; width: 500px; color: #ffffff">
                                        <rad:RadComboBox id="cboCharges" runat="server" Skin="Vista" DropDownWidth="415px" HighlightTemplatedItems="True" OnItemDataBound="cboCharges_ItemDataBound" Width="300px" AutoPostBack="True" OnSelectedIndexChanged="cboCharges_SelectedIndexChanged">
                                            <HeaderTemplate>
                                                <table border="0" cellpadding="5" cellspacing="0" style="width: 415px">
                                                    <tr>
                                                        <td style="width: 265px">Loại phí</td>
                                                        <td style="width: 75px">Vùng</td>
                                                        <td style="width: 75px">Phí</td>
                                                    </tr>
                                                </table>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <table border="0" cellpadding="5" cellspacing="0" style="width: 415px" class="Verdana8Black">
                                                    <tr>
                                                        <td style="width: 265px"><%# DataBinder.Eval(Container.DataItem, "ChargeName") %></td>
                                                        <td style="width: 75px"><%# DataBinder.Eval(Container.DataItem, "AreaName") %></td>
                                                        <td style="width: 75px"><%# string.Format("{0:c0}", DataBinder.Eval(Container.DataItem, "Fee")) %></td>
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </rad:RadComboBox></td>
                                </tr>
                                <tr style="font-weight: bold">
                                    <td align="left" style="width: 170px">
                                        Tổng số tiền phải trả:</td>
                                    <td align="justify" style="padding-left: 5px; width: 500px">
                                        <asp:Label ID="lblTotal" runat="server" CssClass="Verdana10RedBold"></asp:Label>
                                        <asp:HiddenField ID="txtTotal" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" style="width: 170px">
                                        </td>
                                    <td align="justify" style="padding-left: 5px; width: 500px">
                                        <asp:Button ID="btnOK" runat="server" CssClass="bidButton" Text="Đồng ý" OnClick="btnOK_Click" /></td>
                                </tr>
                                <tr>
                                    <td align="left" style="width: 170px">
                                    </td>
                                    <td align="right" style="padding-right: 15px; width: 500px">
                                        <asp:HyperLink ID="lnkBack" runat="server" CssClass="Menu">Quay lại</asp:HyperLink></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <rad:RadAjaxManager id="RadAjaxManager1" runat="server" DefaultLoadingPanelID="AjaxLoadingPanel1">
        <ajaxsettings>
            <rad:AjaxSetting AjaxControlID="cboCharges">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="lblTotal" />
                    <rad:AjaxUpdatedControl ControlID="txtTotal" />
                </UpdatedControls>
            </rad:AjaxSetting>
</ajaxsettings>
    </rad:RadAjaxManager>
    <br />
    <rad:AjaxLoadingPanel id="AjaxLoadingPanel1" Runat="server" height="75px" width="75px">
        <asp:Image ID="Image1" runat="server" AlternateText="Loading..." ImageUrl="~/imgs/ajaxLoading4.gif" />
    </rad:AjaxLoadingPanel>
</asp:Content>

